package com.example.myapplication.base.network.cookie;


import ohos.app.Context;

public class MyCookieMannager {
    private static PersistentCookieStore persistentCookieStore;

    public static PersistentCookieStore getInstance(Context context) {

        if (persistentCookieStore == null) {
            synchronized (PersistentCookieStore.class) {
                if (persistentCookieStore == null) {
                    persistentCookieStore = new PersistentCookieStore(context);
                }
            }
        }
        return persistentCookieStore;
    }
}
